package com.diko;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Emma Li
 * @date 2020/10/25 - 15:08
 */
@ComponentScan(basePackages = {"com.diko"})
@SpringBootApplication
@EnableDiscoveryClient //远程调用
@EnableFeignClients
@MapperScan("com.diko.orderservice.mapper")
public class ordersApplication {
    public static void main(String[] args) {
        SpringApplication.run(ordersApplication.class,args);
    }
}
